package com.baiduspring;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

@SpringBootApplication
@ServletComponentScan
@Slf4j
public class BaiduSpringApplication {
    public static void main(String[] args) {
        log.info("正在启动服务，请稍后...");
        log.info("                                                                                                                        \n" +
                "                                                                                                                        \n" +
                "                                                                                                                        \n" +
                "                 -=.              ;=       **                                 -~                                        \n" +
                "                 ~#.              :*       ==                                 -~                                        \n" +
                "                 ~#,,~-    ,~~,   ,~   ,~-,==  ~-   ~,   .,,.   ,..,,.   ,... .,  ., .,.    .,. ,.                      \n" +
                "                 ~#!=$#:  -=$$$~  ;$  -=#=*$=  $*   $;  -~~~~,  :~-~:~. .:-~~.-:  -:,~:~,  ,~~~-:-                      \n" +
                "                 ~#!.,*#. !=..*=  ;$  !#,.~#=  $*   $; .:-  --  :~, ,:- .:~,..-:  -:~.,~~ .~~..-:-                      \n" +
                "                 ~#,  ~#-  .,,!#  ;$ .=*   $=  $*   $; .:~,.    :-  .~~ .:-   -:  -:   ~~ ,~~  .:-                      \n" +
                "                 ~#.  -#~.:$==$#  ;$ ,=;   ==  $*   $;  -~~:~,  :-   ~~ .:-   -:  -:   ~~ ,:-   :-                      \n" +
                "                 ~#,  ~#-,=!..!#  ;$ .=!   $=  $*   #;   ..,~~. :-  .~~ .:,   -:  -:   ~~ ,~~   :-                      \n" +
                "                 ~#;  !#.-$: .=#  ;$  *$. ~#=  =$. ~@; ,-.  -~. :~. ,:- .:,   -:  -:   ~~ .~~  -:-                      \n" +
                "                 ~#=$$#; .*#==*#*~;$  ~##$=$=  :#$=*$; .~~~~~-  :~~~:~. .:,   -:  -:   ~~  -:~~~:-                      \n" +
                "                 ,;,-;:   ,;;,.:;,~;   ~!:,:;   :!-.;~  .,--,   :-,--.  .-.   ,-  ,-   --   ,-,.:-                      \n" +
                "                                                                :-                         ,,  ,:-                      \n" +
                "                                                                :-                         -:~-~~.                      \n" +
                "                                                                ~-                          -~~-.                       \n" +
                "                                                                                                                        ");
        try {
            SpringApplication.run(BaiduSpringApplication.class, args);
        } catch (Exception e) {
            log.error("服务启动错误：{}", e);
            return;
        }
        log.info("服务启动完毕。您可以正常并合法的访问本网站，任何非法操作，我们都将追究其法律责任！");
    }
}
